<!-- inc:head -->
<script type="text/javascript" src="js/media.js"></script>
<div id="body">
	<div id="left">
		<!-- run:$left_catelist = phpok('catelist','cid='.$rs[cate_id]) -->
		<ul class="border catelist">
			<!-- $left_catelist[rslist] AS $key=>$value -->
			<li>&nbsp;<img src="images/default/catepre.gif" align="absmiddle"> <a href="{:site_url('list','cid='.$value[id])}"{if($value[id] == $rs[cate_id])} style="color:red;"{end}>{:$value[cate_name]}</a></li>
			<!-- end -->
		</ul>
		<div class="space"></div>
		<div id="user_cp"><div class="loading"></div></div>
		<!-- inc:incsearch -->
	</div>
	<div id="right">
		<div class="block-title">详细信息</div>
		<div class="block-msg">
			<h1 class="subject">{:$rs[title]}</h1>
			<div class="date">发布时间：{:date("Y-m-d",$rs[post_date])} &nbsp; 点击率：{:$rs[hits]}</div>
			<div class="picplay">
				<div align="center"><table>
				<tr>
					<td width="500px" height="500px" align="center"><img src="images/loading.gif" id="big-picture" /></td>
				</tr>
				</table></div>
				<div>
					<table width="100%">
					<tr>
						<!-- $rs[bigpic] AS $key=>$value -->
						<td align="center"><img src="{:$value[gd][thumb]}" width="65px" height="65px" id="thumb_{:$key}" class="img_no_select hand" onclick="load_img({:$key});"></td>
						<!-- row:8 -->
						<!-- end -->
					</tr>
					</table>
					<script type="text/javascript">
					var img_count = {:count($rs[bigpic])};//图片数量
					var myhtml = "";
					var picarray = new Array();
					{$rs[bigpic] AS $key=>$value}
					picarray[{:$key}] = "{:$value[gd][big]}";
					{end}
					function load_img(k)
					{
						if(k>=img_count) k=0;
						for(var i=0; i< img_count;i++)
						{
							if(i == k)
							{
								getid("thumb_"+k).className="img_selected hand";
								img_load(picarray[k],"big-picture");
							}
							else
							{
								getid("thumb_"+i).className="img_no_select hand";
							}
						}
					}
					load_img(0);
					</script>
				</div>
			</div>
			<!-- if($rs[content]) -->
			<div class="picplay"><div style="padding:3px 5px;">{:$rs[content]}</div></div>
			<!-- end -->
			<!-- run:$np_list = phpok_next_prev($rs[id],$rs[cate_id]) -->
			<!-- if($np_list) -->
			<div>
				<table width="100%">
				<!-- $np_list[next] AS $key=>$value -->
				<tr>
					<td>下一主题：<a href="{:msg_url($value)}" title="{:$value[title]}">{:$value[title]}</a></td>
				</tr>
				<!-- end -->
				<!-- $np_list[prev] AS $key=>$value -->
				<tr>
					<td>上一主题：<a href="{:msg_url($value)}" title="{:$value[title]}">{:$value[title]}</a></td>
				</tr>
				<!-- end -->
				</table>
			</div>
			<!-- end -->
			<!-- run:unset($np_list) -->
			<div id="reply_hits" style="display:none;"></div>
		
		</div>
		<div id="reply_message"></div>
	</div>
	<div class="space clear"></div>
</div>

<script type="text/javascript">
func_php("usercp",js_usercp,"user_cp");
func_php("reply&id={:$rs[id]}",js_reply,"reply_message");
func_php("digg&type=normal&id={:$rs[id]}",js_show_digg,"reply_hits");
</script>
<!-- inc:foot -->